using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools._Administration
{
    /// <summary>
    /// <para>Add Network Category</para>
    /// <para>Adds a network category to an existing utility network.</para>
    /// <para>将网络类别添加到现有公共设施网络。</para>
    /// </summary>    
    [DisplayName("Add Network Category")]
    public class AddNetworkCategory : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddNetworkCategory()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Utility Network</para>
        /// <para>The input utility network where the network category will be added.</para>
        /// <para>将在其中添加网络类别的输入公共设施网络。</para>
        /// </param>
        /// <param name="_category_name">
        /// <para>Category Name</para>
        /// <para>The name of the category to be created.</para>
        /// <para>要创建的类别的名称。</para>
        /// </param>
        public AddNetworkCategory(object _in_utility_network, object _category_name)
        {
            this._in_utility_network = _in_utility_network;
            this._category_name = _category_name;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Add Network Category";

        public override string CallName => "un.AddNetworkCategory";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _category_name, _out_utility_network];

        /// <summary>
        /// <para>Input Utility Network</para>
        /// <para>The input utility network where the network category will be added.</para>
        /// <para>将在其中添加网络类别的输入公共设施网络。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Category Name</para>
        /// <para>The name of the category to be created.</para>
        /// <para>要创建的类别的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Category Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _category_name { get; set; }


        /// <summary>
        /// <para>Updated Utility Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        public AddNetworkCategory SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}